package com.zyf.workflow.test.generic;

import java.util.List;

public class Factory<T> {

    public void test(List<?> list) {
//        list.add("aa");

    }

    public void test2(List<T> list) {
        T test = null;
        list.add(test);
    }

    public T get(){
        T type =null;
        return type;
    }

    private static void swap(List<?> list,int a,int b){
//        list.set(2,list.set(3,list.get(3)));
    }

    private static <E> void swapHelper(List<E> list, int a, int b) {
        list.set(2,list.set(3,list.get(3)));
    }

}
